import Vue from 'vue';
import App from './App.vue';
import VueRouter from 'vue-router';
import iView from 'iview';
import {routes} from './routers.js';
import 'iview/dist/styles/iview.css';
import axios from 'axios';
import VueAxios from 'vue-axios';
import VueQuillEditor from 'vue-quill-editor';
//import {store} from './store/index.js';//默认指向index,所以index可省略
import {store} from './store';

axios.defaults.headers.post['Content-Type']='application/x-www-form-urlencoded';


Vue.use(VueQuillEditor);
Vue.use(VueAxios, axios);
Vue.use(VueRouter);
Vue.use(iView);

const RouterConfig = {
    routes: routes
};

const router = new VueRouter(RouterConfig);

new Vue({
  el: '#app',
  store,
  router,
  render: h => h(App)
})
